<fieldset>

<?php $form=$this->beginWidget('BootstrapActiveForm', array(
	'id'=>'entry-form',
	'enableAjaxValidation'=>true,
	'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>

	<?php echo $form->textFieldBlock($model,'name',array('class'=>'xlarge','maxlength'=>255)); ?>

	<?php echo $form->dropDownListBlock($model,'contestId',CHtml::listData(Contest::model()->findAll(),'id','name'),array('class'=>'xlarge')); ?>

	<?php echo $form->dropDownListBlock($model,'status',Entry::getStatusOptions(),array('class'=>'xlarge')); ?>

	<div class="clearfix">
		<?php echo $form->labelEx($model,'upload'); ?>
		<div class="input">
			<?php echo $form->fileField($model,'upload'); ?>
			<?php echo $form->error($model,'upload'); ?>
			<?php if (!$entry->isNewRecord): ?>
				<div class="image"><?php echo $entry->renderImage(IMAGE_VERSION_LARGE); ?></div>
			<?php endif; ?>
		</div>
	</div>

	<div class="actions">
		<?php echo CHtml::submitButton(Yii::t('admin','Save'),array('class'=>'btn primary')); ?>
	</div>

<?php $this->endWidget(); ?>

</fieldset>